﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Microsoft.Practices.Unity;
using ObjectEditor.Configuration;
using ObjectEditor.Editor;
using ObjectEditor.Display3D;

namespace EQEmu.ZoneSpawnsPlugin
{
    public sealed class ZoneSpawnsPluginModuleConfiguration : IModuleConfiguration
    {
        public void Initialize(IUnityContainer container)
        {
            return;
        }

        public void Finalize(IUnityContainer container)
        {
            var viewmodel = container.Resolve<ZoneSpawnsRibbonTabViewModel>();
            container.RegisterInstance<IWorldModel3DProvider>(viewmodel.ToString(), viewmodel);
            container.RegisterInstance<IObjectEditor>(viewmodel.ToString(), viewmodel);
            container.RegisterInstance<IMessenger>(viewmodel.ToString(), viewmodel);
            container.RegisterInstance<ZoneSpawnsRibbonTabViewModel>(viewmodel);
        }

        public void Dispose()
        {
        }
    }
}
